Dynomotion

Group: DynoMotion Message: 13561 From: tmday7 Date: 7/14/2016
Subject: INIT cprogram re-zeroing axes
Hello,
 Whenever i use my INIT c program all axes re-zero. Is there a line of code iam missing in c program to prevent this?
Thanks,
Troy


Group: DynoMotion Message: 13581 From: tmday7 Date: 7/15/2016
Subject: Re: INIT cprogram re-zeroing axes
Ok. Found it in this thread on CNCzone....
DRO reset to zero if the Estop or limit switch are hit
.
"Your Initialization C Program gives you much control over how things are handled. You can set the Destinations to zero, or the last commanded destination, or the current encoder position (assuming you have encoders).

To set the to the last commanded Destination instead of zero change:

EnableAxisDest(xx,0.0);

to

EnableAxisDest(xx,chxx->Dest);

(replace xx with the axis channel).

Note that after an EStop or other incident the last commanded Destination may be invalid.

HTH
Regards"
Group: DynoMotion Message: 13583 From: Tom Kerekes Date: 7/15/2016
Subject: Re: INIT cprogram re-zeroing axes

Sorry I sent this yesterday and for some reason it never showed up.  Resending....


Hi Troy,

Instead of enabling your axes with a destination of zero try enabling with a destination of the last commanded destination with:

EnableAxisDest(0,ch0->Dest);

or if you have encoders to the current encoder position with

EnableAxisDest(0,ch0->Position);

HTH

Regards

TK



On 7/15/2016 5:30 AM, tmday88@... [DynoMotion] wrote:
 

Ok. Found it in this thread on CNCzone....
DRO reset to zero if the Estop or limit switch are hit


.
"Your Initialization C Program gives you much control over how things are handled. You can set the Destinations to zero, or the last commanded destination, or the current encoder position (assuming you have encoders).

To set the to the last commanded Destination instead of zero change:

EnableAxisDest(xx,0.0);

to

EnableAxisDest(xx,chxx->Dest);

(replace xx with the axis channel).

Note that after an EStop or other incident the last commanded Destination may be invalid.

HTH
Regards"
Group: DynoMotion Message: 13594 From: tmday7 Date: 7/15/2016
Subject: Re: INIT cprogram re-zeroing axes
Ok. Was thinking i wore out my welcome . This is one reason ive been using the CNC zone forum.Yahoo drops so many posts or post them really late.

Thanks again Tom.
Troy
Group: DynoMotion Message: 13595 From: Tom Kerekes Date: 7/15/2016
Subject: Re: INIT cprogram re-zeroing axes

Troy - you will never wear out your welcome.

Regards

TK


On 7/15/2016 6:19 PM, tmday88@... [DynoMotion] wrote:
 

Ok. Was thinking i wore out my welcome . This is one reason ive been using the CNC zone forum.Yahoo drops so many posts or post them really late.

Thanks again Tom.
Troy